package com.yk._15单例模式;

import com.sun.org.apache.bcel.internal.generic.NEW;

public class _01HungrySingle {

    private _01HungrySingle() {
    } //1 .私有化构造方法
    private _01HungrySingle hungrySingle = new _01HungrySingle(); // 2.内部构造出来一个instance
    public _01HungrySingle getHungrySingle() {
        return hungrySingle;
    } // 3.public的get方法
}
